package cn.t222.util;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class LogTest {

    @Scheduled(fixedRate = 1000)
    public void logtest() {
        log.trace("这是一条trace日志");
        log.debug("这是一条debug日志");
        log.info("这是一条info日志");
        log.warn("这是一条warn日志");
        log.error("这是一条error日志");
    }
}
